@use "../_variables" as *;
@use "sass:color";

.downloading-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: var(--bg);

  .downloading-content {
    width: 100%;
    height: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    .downloading-title {
      display: flex;
      align-items: center;
      font-size: 30px;
      font-weight: 700;
      color: var(--text-strong);
      margin-bottom: 1.5rem;
      gap: 15px;
    }

    .spinner {
      @include loading-spinner(25px, 4px, var(--bg-pri-medium), var(--bg-gray-medium));
    }

    .downloading-log {
      background-color: var(--bg-gray-medium);
      border: 1px solid var(--stroke-gray-medium);
      border-radius: 8px;
      padding: 30px 15px;
      width: 100%;
      height: 350px;
      overflow-y: auto;
      margin-bottom: 1.5rem;

      @include scrollbar;

      .downloading-log-item {
        color: var(--text-weak);
        display: flex;
        align-items: flex-start;
        font-size: 16px;

        .downloading-log-item-timestamp {
          font-family: monospace;
          margin-right: 5px;
          flex-shrink: 0;

          .downloading-log-item-timestamp-time {
            color: var(--text-pri);
          }
        }
      }
    }
  }
}

.button-container {
  display: flex;
  justify-content: flex-start;
  gap: 25px;
  width: 100%;
  color: var(--text-weak);
}
